package icu.qx.pro.domain.pbs;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 工艺路线工序对象 pbs_proute_procedure
 *
 * @author yong
 * @date 2024-06-17
 */
public class PbsProuteProcedure extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 工序code
     */
    private String ppProcedureCode;

    /**
     * 工艺路线code
     */
    private String ppProuteCode;

    /**
     * 下一道工序
     */
    @Excel(name = "下一道工序")
    private String ppNext;

    /**
     * S-S：当前工序开始生产，下一道工序才可开始生产
     * F-F：当前工序结束生产，下一道工序才可结束生产
     * S-F：当前工序开始生产，下一道工序才可结束生产
     * F-S：当前工序结束生产，下一道工序才可开始生产
     */
    private String ppRelation;

    /**
     * 是否为关键工序 0不是 1是
     */
    @Excel(name = "是否为关键工序 0不是 1是")
    private String ppKey;

    /**
     * 显示颜色 十六进制
     */
    @Excel(name = "显示颜色 十六进制")
    private String ppColor;

    /**
     * 准备时间
     */
    @Excel(name = "准备时间")
    private BigDecimal ppReadyTime;

    /**
     * 等待时间
     */
    @Excel(name = "等待时间")
    private BigDecimal ppWaitTime;

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String ppDesc;

    public void setPpProcedureCode(String ppProcedureCode) {
        this.ppProcedureCode = ppProcedureCode;
    }

    public String getPpProcedureCode() {
        return ppProcedureCode;
    }

    public void setPpProuteCode(String ppProuteCode) {
        this.ppProuteCode = ppProuteCode;
    }

    public String getPpProuteCode() {
        return ppProuteCode;
    }

    public void setPpNext(String ppNext) {
        this.ppNext = ppNext;
    }

    public String getPpNext() {
        return ppNext;
    }

    public void setPpRelation(String ppRelation) {
        this.ppRelation = ppRelation;
    }

    public String getPpRelation() {
        return ppRelation;
    }

    public void setPpKey(String ppKey) {
        this.ppKey = ppKey;
    }

    public String getPpKey() {
        return ppKey;
    }

    public void setPpColor(String ppColor) {
        this.ppColor = ppColor;
    }

    public String getPpColor() {
        return ppColor;
    }

    public void setPpReadyTime(BigDecimal ppReadyTime) {
        this.ppReadyTime = ppReadyTime;
    }

    public BigDecimal getPpReadyTime() {
        return ppReadyTime;
    }

    public void setPpWaitTime(BigDecimal ppWaitTime) {
        this.ppWaitTime = ppWaitTime;
    }

    public BigDecimal getPpWaitTime() {
        return ppWaitTime;
    }

    public void setPpDesc(String ppDesc) {
        this.ppDesc = ppDesc;
    }

    public String getPpDesc() {
        return ppDesc;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("ppProcedureCode", getPpProcedureCode())
                .append("ppProuteCode", getPpProuteCode())
                .append("ppNext", getPpNext())
                .append("ppRelation", getPpRelation())
                .append("ppKey", getPpKey())
                .append("ppColor", getPpColor())
                .append("ppReadyTime", getPpReadyTime())
                .append("ppWaitTime", getPpWaitTime())
                .append("ppDesc", getPpDesc())
                .toString();
    }
}
